<?php
class Admin_Model_Settings 
{
   
    public function getThemes() {
    	$path = ROOT_PATH . "/site/themes/";
		$themes = scandir ( $path );
		$res = array ();
		foreach ( $themes as $theme ) {
			if ((! preg_match ( '/^\./', $theme )) && (! preg_match ( '/^default$/', $theme ))) {
				$name = preg_replace ( '/\.\S+$/', '', $theme );
				$res [$name] = $theme;
			}
		}
		return $res;
    }
        
}